<?

/*
 * Copyright (c) 2010 DC Team
 */

define('DC', true);
include_once('common.php'); 

$version = $_SERVER['SERVER_NAME'];
//数据库连接标识
$dbId = $_REQUEST['dbId'];

//连接数据库
$g_db = mysqlConnect($dbId);

//获取备份表
$sql = "SHOW TABLES";
$row = $g_db[$dbId]->query($sql);
while($result = $row -> fetch_array()){
	if (!stristr($result[0], 'backup0_0')) {
		$data[] = $result[0];
		if (isset($g_mmc_tbconf[$result[0]]) && $g_mmc_tbconf[$result[0]]['mmc'] == true) {
			$mmc[] = $result[0];
		}
	}else {
		$back[] = $result[0];
	}
}
if (!isset($data)) {
	$data = array('没有相关数据', '');
}
if (!isset($back)) {
	$back = array('没有相关数据', '');
}
include(ROOT.'template/comparetable.tpl.php');
?>